/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TESTS;

import java.awt.Color;
import javax.swing.JFrame;
import java.awt.Dimension;
import java.awt.Graphics;

public class Test extends JFrame {

    public Test() {
        this.setPreferredSize(new Dimension(400, 400));
        this.pack();
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    @Override
    public void paint(Graphics g) {
        super.paint(g);

        // define the position
        int locX = 200;
        int locY = 200;

        // draw a line (there is now drawPoint..)
        g.setColor(Color.yellow);
        g.fillOval(200, 200, 5, 5);
        g.setColor(Color.BLACK);
        g.fillOval(200, 300, 5, 5);
        
    }

    public static void main(String[] args) {
        Test test = new Test(); 
    }
}